package com.opdar.athena.entities;

import com.opdar.athena.base.Constants;

/**
 * Created by shiju on 2017/7/4.
 */
public class ErrorResult {
    private int code;
    private String message;

    public ErrorResult() {
    }

    public ErrorResult(Constants.ErrorCode code) {
        this.code = code.getCode();
        this.message = code.getMessage();
    }

    public ErrorResult(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public void setCode(Constants.ErrorCode code) {
        this.code = code.getCode();
        this.message = code.getMessage();
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
